﻿
function doPrintSetup(){  
  //打印设置  
  $("WB").ExecWB(8,1);  
}  
function doPrintPreview(){  
    //打印预览
    $("WB").ExecWB(7,1);  
}  
function doPrint(){  
  //直接打印  
  $("WB").ExecWB(6,6);  
}

function DoPrint(strHtml)
{
     var WinPrint = window.open('','','letf=0,top=0,width=300,height=300,toolbar=0,scrollbars=1,status=0,menubar=1,resizable=1');
     WinPrint.document.write(strHtml);
     WinPrint.document.close();
     WinPrint.focus();
     WinPrint.print();
     WinPrint.close();
}

function DoPrintView(strHtml)
{
     var WinPrint = window.open('','','letf=0,top=0,width=300,height=300,toolbar=0,scrollbars=1,status=0,menubar=1,resizable=1');
     WinPrint.document.write(strHtml);
     WinPrint.focus();
     WinPrint.print();
}

